import Vue from 'vue'
import Router from 'vue-router'
import Menus from '@/components/menus/Menus.vue'
import ForegroundPortalTheme from '@/components/foregroundPortalTheme/ForegroundPortalTheme.vue'
import Home from '@/views/home/Home.vue'
import index from '@/views/index/index.vue'
import NewsDetails from '@/views/newsDetails/NewsDetails.vue'
import BaseShow from '@/views/baseShow/BaseShow.vue'
import BaseDetails from '@/views/baseDetails/BaseDetails.vue'
import ExpertsShow from '@/views/expertsShow/ExpertsShow.vue'
import ExpertsDetails from '@/views/expertsDetails/ExpertsDetails.vue'
import NationalPolicy from '@/views/nationalPolicy/NationalPolicy.vue'
import PolicyDetails from '@/views/policyDetails/PolicyDetails.vue'
import PortalThemes from '@/components/portalThemes/PortalThemes.vue'
import HomePage from '@/views/homePage/HomePage.vue'
import PressRelease from '@/views/pressRelease/PressRelease.vue'
import Announcements from '@/views/announcements/Announcements.vue'
import PolicyIssued from '@/views/policyIssued/PolicyIssued.vue'
import DownloadManager from '@/views/downloadManager/DownloadManager.vue'
import BriefReport from '@/views/briefReport/briefReport.vue'
import ModifyBriefing from '@/views/modifyBriefing/modifyBriefing.vue'
import TextNews from '@/views/textNews/TextNews.vue'
import ByTheNews from '@/views/byTheNews/ByTheNews.vue'
import TheAnnouncement from '@/views/theAnnouncement/TheAnnouncement.vue'
import PublishContent from '@/views/publishContent/PublishContent.vue'
import DownloadRelease from '@/views/downloadRelease/DownloadRelease.vue'
import PortalConfiguration from '@/views/portalConfiguration/PortalConfiguration.vue'
import RelevantPolicy from '@/views/relevantPolicy/RelevantPolicy.vue'
import DataDownload from '@/views/dataDownload/DataDownload.vue'
import Login from '@/views/login/Login.vue'
import LoginCas from '@/views/LoginCas/LoginCas.vue'
import registered from '@/views/registered/registered.vue'
import AboutUs from '@/views/aboutUs/AboutUs.vue'
import DynamicWorkList from '@/views/dynamicWorkList/DynamicWorkList.vue'
import WorkingDynamicDetails from '@/views/workingDynamicDetails/WorkingDynamicDetails.vue'
import WorkBriefing from '@/views/workBriefing/workBriefing.vue'
import WorkBriefingDetail from '@/views/workBriefingDetail/workBriefingDetail.vue'
import ResultsShow from '@/views/resultsShow/ResultsShow.vue'
import ResultsDetails from '@/views/resultsDetails/ResultsDetails.vue'
import LocalPolicy from '@/views/localPolicy/LocalPolicy.vue'
import BaseApplication from '@/views/baseApplication/BaseApplication.vue'
import TheTraining from '@/views/theTraining/TheTraining.vue'
import Course from '@/views/course/Course.vue'
import CompletionReport from '@/views/completionReport/CompletionReport.vue'
import CertificatesCompletion from '@/views/certificatesCompletion/CertificatesCompletion.vue'
import RegistrationManagement from '@/views/registrationManagement/RegistrationManagement.vue'
import ClassManagement from '@/views/classManagement/ClassManagement.vue'
import ManagementCompletionCertificates from '@/views/managementCompletionCertificates/ManagementCompletionCertificates.vue'
import TeachingResources from '@/views/teachingResources/TeachingResources.vue'
import CourseDetails from '@/views/courseDetails/CourseDetails.vue'
import ReportWriting from '@/views/reportWriting/ReportWriting.vue'
import NewResources from '@/views/newResources/NewResources.vue'
import MyDesktop from '@/views/myDesktop/MyDesktop.vue'
import Results from '@/views/results/Results.vue'
import About from '@/views/about/About.vue'
import ResultsReleased from '@/views/resultsReleased/ResultsReleased.vue'
import userList from '@/views/user/userList.vue'
import roleList from '@/views/role/roleList.vue'
import addRole from '@/views/addRole/addRole.vue'
import ToViewRole from '@/views/ToViewRole/ToViewRole.vue'
import addUser from '@/views/addUser/addUser.vue'
import ToViewUser from '@/views/ToViewUser/ToViewUser.vue'
import ProjectAdministratorDesktop from '@/views/ProjectAdministratorDesktop/ProjectAdministratorDesktop.vue'
import projectManagement from '@/views/projectManagement/projectManagement.vue'
import ProjectSelection from '@/views/ProjectSelection/ProjectSelection.vue'
import ProjectReview from '@/views/ProjectReview/ProjectReview.vue'
import project from '@/views/project/project.vue'
import TheInterim from '@/views/TheInterim/TheInterim.vue'
import TheConcludingReports from '@/views/TheConcludingReports/TheConcludingReports.vue'
import BaseConstruction from '@/views/BaseConstruction/BaseConstruction.vue'
import TheBaseMaterial from '@/views/TheBaseMaterial/TheBaseMaterial.vue'
import BaseExpert from '@/views/BaseExpert/BaseExpert.vue'
import BaseProject from '@/views/BaseProject/BaseProject.vue'
import ExpertDatabase from '@/views/ExpertDatabase/ExpertDatabase.vue'
import StudentsLibrary from '@/views/StudentsLibrary/StudentsLibrary.vue'
import EnterpriseLibrary from '@/views/EnterpriseLibrary/EnterpriseLibrary.vue'
import WorkingState from '@/views/WorkingState/WorkingState.vue'
import InformationTechnologyLibrary from '@/views/InformationTechnologyLibrary/InformationTechnologyLibrary.vue'
import database from '@/views/database/database.vue'
import MyCourse from '@/views/MyCourse/MyCourse.vue'
import JobLog from '@/views/JobLog/JobLog.vue'
import TeacherClassManagement from '@/views/TeacherClassManagement/TeacherClassManagement.vue'
import TemplateManagement from '@/views/TemplateManagement/TemplateManagement.vue'
import ProjectFormation from '@/views/ProjectFormation/ProjectFormation.vue'
import MyReview from '@/views/MyReview/MyReview.vue'
import ProjectApplication from '@/views/ProjectApplication/ProjectApplication.vue'
import TheContractInformation from '@/views/TheContractInformation/TheContractInformation.vue'
import ToApplyForReview from '@/views/ToApplyForReview/ToApplyForReview.vue'
import BaseManagementManager from '@/views/BaseManagementManager/BaseManagementManager.vue'
import AddTemplate from '@/views/AddTemplate/AddTemplate.vue'
import PolicyDetail from '@/views/PolicyDetail/PolicyDetail.vue'
import AnnouncementDetail from '@/views/AnnouncementDetail/AnnouncementDetail.vue'
import DynamicDetail from '@/views/DynamicDetail/DynamicDetail.vue'
import CommentManagement from '@/views/commentManagement/commentManagement.vue'
import ForgetPassword from '@/views/forgetPassword/forgetPassword.vue'
import AuditTopic from '@/views/auditTopic/auditTopic.vue'
import TopicDetail from '@/views/topicDetail/topicDetail.vue'
import CommentManagementDetail from '@/views/commentManagementDetail/commentManagementDetail.vue'

Vue.use(Router)
export default new Router({
	routes: [{
		path: '/',
		component: index
	}, {
		//门户首页
		path: "/index",
		component: index
	}, {
		//门户登录
		path: "/login",
		component: Login
	},{
		//忘记密码
		path: "/forgetPassword",
		component: ForgetPassword
	},{
    //门户cas登录//账号绑定
    path: "/loginCas",
    component: LoginCas
  },{
		//门户注册
		path: "/registered",
		component: registered
	}, {
		//基地申请
		path: "/baseApplication",
		component: BaseApplication
	}, {
		//培训报名
		path: "/theTraining",
		component: TheTraining
	}, {
		//课程详情
		path: "/courseDetails",
		component: CourseDetails
	}, {
		//报告编写
		path: "/reportWriting",
		component: ReportWriting
	}, {
		//前台门户主题
		path: '/foregroundPortalTheme',
		component: ForegroundPortalTheme,
		children: [{
				//门户首页
				path: "/index",
				component: index
			}, {
				//通知公告列表
				path: "/dynamicWorkList",
				component: DynamicWorkList
			}, {
				//通知公告详情
				path: "/workingDynamicDetails",
				component: WorkingDynamicDetails
			},{
				//简报列表
				path: "/workBriefing",
				component: WorkBriefing
			}, {
				//简报详情
				path: "/workBriefingDetail",
				component: WorkBriefingDetail
			}, {
				//工作动态
				path: "/home",
				component: Home
			}, {
				//动态详情
				path: "/newsDetails",
				component: NewsDetails
			}, {
				//成果列表
				path: "/resultsShow",
				component: ResultsShow
			}, {
				//成果详情
				path: "/resultsDetails",
				component: ResultsDetails
			}, {
				//基地展示
				path: "/baseShow",
				component: BaseShow
			}, {
				//基地详情
				path: "/baseDetails",
				component: BaseDetails
			}, {
				//地方政策
				path: "/localPolicy",
				component: LocalPolicy
			}, {
				//地方政策详情
				path: "/relevantPolicy",
				component: RelevantPolicy
			},
			{
				//国家政策
				path: "/nationalPolicy",
				component: NationalPolicy
			}, , {
				//国家政策详情
				path: "/policyDetails",
				component: PolicyDetails
			}, {
				//资料下载
				path: "/dataDownload",
				component: DataDownload
			}, {
				//关于我们
				path: "/aboutUs",
				component: AboutUs
			}, {
				//专家展示
				path: "/expertsShow",
				component: ExpertsShow
			}, {
				//专家详情
				path: "/expertsDetails",
				component: ExpertsDetails
			}
		]
	}, {
		//后台管理主题
		path: '/portalThemes',
		component: PortalThemes,
		children: [{
				//动态详情
				path: "/DynamicDetail",
				component: DynamicDetail
			},{
				//专家库
				path: "/ExpertDatabase",
				component: ExpertDatabase
			},
			{
				//学生库
				path: "/StudentsLibrary",
				component: StudentsLibrary
			}, {
				//企业库
				path: "/EnterpriseLibrary",
				component: EnterpriseLibrary
			},
			{
				//我的桌面
				path: "/ProjectAdministratorDesktop",
				component: ProjectAdministratorDesktop
			}, {
				//项目管理
				path: "/projectManagement",
				component: projectManagement
			}, {
				//项目筛选
				path: "/ProjectSelection",
				component: ProjectSelection
			},
			{
				//项目审核
				path: "/ProjectReview",
				component: ProjectReview
			},
			{
				//项目立项
				path: "/project",
				component: project
			}, {
				//项目中期
				path: "/TheInterim",
				component: TheInterim
			}, {
				//结题报告
				path: "/TheConcludingReports",
				component: TheConcludingReports
			},
			{
				//基地建设
				path: "/BaseConstruction",
				component: BaseConstruction
			}, {
				//基地材料
				path: "/TheBaseMaterial",
				component: TheBaseMaterial
			}, {
				//基地专家
				path: "/BaseExpert",
				component: BaseExpert
			}, {
				//基地项目
				path: "/BaseProject",
				component: BaseProject
			},
			{
				//门户管理首页
				path: "/homePage",
				component: HomePage
			}, {
				//用户列表
				name: 'userList',
				path: "/userList",
				component: userList
			}, {
				//角色列表
				name: 'roleList',
				path: "/roleList",
				component: roleList
			},
			{
				//新增角色
				path: "/addRole",
				component: addRole
			}, {
				//查看角色
				path: "/ToViewRole",
				component: ToViewRole
			},
			{
				//新增用户
				path: "/addUser",
				component: addUser
			},
			{
				//查看用户
				path: "/ToViewUser",
				component: ToViewUser
			},
			{
				//门户管理新闻发布
				path: "/pressRelease",
				component: PressRelease
			}, {
				//门户管理通知公告
				path: "/announcements",
				component: Announcements
			}, {
				//门户管理政策发布
				path: "/policyIssued",
				component: PolicyIssued
			},
			{
				//门户管理下载管理
				path: "/downloadManager",
				component: DownloadManager
			},
			{
				//门户管理简报
				path: "/briefReport",
				component: BriefReport
			},{
				//门户管理新增简报
				path: "/modifyBriefing",
				component: ModifyBriefing
			},{
				//门户管理文本新闻
				path: "/textNews",
				component: TextNews
			}, {
				//门户管理图文新闻
				path: "/byTheNews",
				component: ByTheNews
			}, {
				//门户管理成果展示
				path: "/results",
				component: Results
			}, {
				//门户管理成果发布
				path: "/resultsReleased",
				component: ResultsReleased
			}, {
				//门户管理公告发布
				path: "/theAnnouncement",
				component: TheAnnouncement
			}, {
				//门户管理政策发布-发布内容
				path: "/publishContent",
				component: PublishContent
			},{
				//门户管理政策发布详情
				path: "/PolicyDetail",
				component: PolicyDetail
			},
			{
				//门户管理下载发布
				path: "/downloadRelease",
				component: DownloadRelease
			},
			{
				//门户管理公告详情
				path: "/AnnouncementDetail",
				component: AnnouncementDetail
			}, {
				//门户管理门户配置
				path: "/portalConfiguration",
				component: PortalConfiguration
			}, {
				//门户管理关于我们
				path: "/about",
				component: About
			}, {
				//学员课程
				path: "/course",
				component: Course
			}, {
				//结业报告
				path: "/completionReport",
				component: CompletionReport
			}, {
				//结业证书
				path: "/certificatesCompletion",
				component: CertificatesCompletion
			}, {
				//注册管理
				path: "/registrationManagement",
				component: RegistrationManagement
			}, {
				//班级管理
				path: "/classManagement",
				component: ClassManagement
			}, {
				//结业证书管理
				path: "/managementCompletionCertificates",
				component: ManagementCompletionCertificates
			}, {
				//教学资源
				path: "/teachingResources",
				component: TeachingResources
			}, {
				//新增资源
				path: "/newResources",
				component: NewResources
			}, {
				//工作状态
				path: "/WorkingState",
				component: WorkingState
			}, {
				//信息技术库
				path: "/InformationTechnologyLibrary",
				component: InformationTechnologyLibrary
			}, {
				//资料库
				path: "/database",
				component: database
			}, {
				//我的课程
				path: "/MyCourse",
				component: MyCourse
			}, {

				//工作日志
				path: "/JobLog",
				component: JobLog
			}, {
				//教师班级管理
				path: "/TeacherClassManagement",
				component: TeacherClassManagement
			}, {
				//模板管理
				path: "/TemplateManagement",
				component: TemplateManagement
			}, {
				//项目信息
				path: "/ProjectFormation",
				component: ProjectFormation
			}, {

				//我的评审
				path: "/MyReview",
				component: MyReview
			}, {
				//项目申请
				path: "/ProjectApplication",
				component: ProjectApplication
			}, {
				//合同信息
				path: "/TheContractInformation",
				component: TheContractInformation
			}, {
				//申请审核
				path: "/ToApplyForReview",
				component: ToApplyForReview

			},

			{
				//基地管理
				path: "/BaseManagementManager",
				component: BaseManagementManager
			},
			{
				//添加模板
				path: "/AddTemplate",
				component: AddTemplate
			},
			{
				//评论管理
				path: "/commentManagement",
				component: CommentManagement
			},
			{
				//话题审核
				path: "/auditTopic",
				component: AuditTopic
			},
			{
				//话题详情
				path: "/topicDetail",
				component: TopicDetail
			},
			{
				//评论详情
				path: "/commentManagementDetail",
				component: CommentManagementDetail
			}


		]
	}, ]

})
